#include "Seg.h"
unsigned char Seg_Dula[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00};//数码管段码储存数
unsigned char Seg_Wela[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf};//数码管位码储存数组

 void Seg_Disp(unsigned char wela,dula)
 {
	 P0=0x00;
	 P2_6 = 1;
	 P2_6 = 0;
	 
	 P0=Seg_Wela[wela];
	 P2_7 = 1;
	 P2_7 = 0;
	 if(wela%2==0)
	 {
		P0 = Seg_Dula[dula];
		P2_6 = 1;
		P2_6 = 0;
	 }
	 else
	 {
		P0 = Seg_Dula[dula]|0x80;
		P2_6 = 1;
		P2_6 = 0; 
	 }
 }